]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Fix invalid argument 'timestamp' for pushModal
authorHeiher <r@hev.cc>
Wed, 22 Jan 2014 02:39:52 +0000 (10:39 +0800)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 14 Apr 2016 09:10:51 +0000 (11:10 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=722752

js/ui/modalDialog.js

index 960e0dca3ca8c48c27dd358a47961d9cc7de32ad..ac773056d72b7f7a20014d7358cdfa5b7a5b08d2 100644 (file)
@@ -259,7 +259,7 @@ const ModalDialog = new Lang.Class({
         if (this.state == State.OPENED || this.state == State.OPENING)
             return true;
 
-        if (!this.pushModal({ timestamp: timestamp }))
+        if (!this.pushModal(timestamp))
             return false;
 
         this._fadeOpen(onPrimary);
@@ -318,8 +318,11 @@ const ModalDialog = new Lang.Class({
     pushModal: function (timestamp) {
         if (this._hasModal)
             return true;
-        if (!Main.pushModal(this._group, { timestamp: timestamp,
-                                           actionMode: this._actionMode }))
+
+        let params = { actionMode: this._actionMode };
+        if (timestamp)
+            params['timestamp'] = timestamp;
+        if (!Main.pushModal(this._group, params))
             return false;
 
         this._hasModal = true;